package sany.iec.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;
import sany.iec.enums.*;

/**
 * @Author 托马斯
 * @Date 2025/7/5 22:34
 * @Description DataEntity
 */
@AllArgsConstructor
@Data
@Builder
public class DataEntity {

    /**
     * 数据类别：遥控 遥信 遥调  遥测
     */
    private DataCategoryEnum category;

    private ModbusRegisterEnum modbusRegisterEnum;

    private IEC104DataTypeEnum iec104DataTypeEnum;

    private ModbusDataTypeEnum modbusDataTypeEnum;

    private Integer iec104CommonAddress;

    private Integer address;

    /**
     * 程序初始化时候的值
     */
    private String originInitValue;

    /**
     * 偏差：±偏差
     */
    private Float deviation;

    private String key;

    /**
     * 计算公式
     */
    private String calculationFormula;

    /**
     * 这个点位是否变更
     */
    private EnableEnum updateEnable;

}
